<?php header("Content-type: text/javascript"); ?>

google.load("jquery", "1.4.2");
google.load("jqueryui", "1.8.4");

function init(){

    // Blinder function for blocks
    jQuery.fn.blindToggle = function(newHeight, speed, easing, callback) {
        return this.parent().each(function(){
            with($(this)){
                if(height() != newHeight){
                    data("toggled", "false").data("wasHeight", height()).css("overflow","hidden").animate({height: newHeight}, speed, easing, callback)
                } else {
                    $(this).data("toggled", "true").animate({height: data("wasHeight")}, speed, easing, callback);
                }
            }
        })
    };

    blocksInit();
    uiInit();
}

google.setOnLoadCallback(init);